﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GovernmentOfficeProject.LevelDataAccessModel
{
    /// <summary>
    /// 集合button和menu所有值,传值在权限设置使用.
    /// </summary>
    public class Entity_SYS_MenuAndButtonCollection
    {
        private decimal orderID = 0;
        private decimal menuID = 0;
        private string menuName = "";
        private string menuNo = "";
        private string menuParentNo = "";
        private decimal buttonId = 0;
        private string buttonName = "";
        private string buttonNo = "";
        private bool selectValue = false;

        public bool SelectValue
        {
            get { return selectValue; }
            set { selectValue = value; }
        }

        public string ButtonName
        {
            get { return buttonName; }            
            set {
                if (buttonName.Equals(null))
                {
                    buttonName = "";
                }
                else
                {
                    buttonName = value;
                }
            }
        }


        public string ButtonNo
        {
            get { return buttonNo; }
            set {
                if (buttonNo.Equals(null))
                {
                    buttonNo = "";
                }
                else
                {
                    buttonNo = value;
                }
            }
        }

        public decimal ButtonId
        {
            get { return buttonId; }
            set { buttonId = value; }
        }


        public string MenuParentNo
        {
            get 
            { 
                if (menuParentNo.Equals(null))
                {
                    menuParentNo = "";
                }
                return menuParentNo; 
            }
            set { menuParentNo = value; }
        }


        public string MenuName
        {
            get { return menuName; }
            set { menuName = value; }
        }


        public string MenuNo
        {
            get { return menuNo; }
            set { menuNo = value; }
        }


        public decimal MenuID
        {
            get { return menuID; }
            set { menuID = value; }
        }
        

        public decimal OrderID
        {
            get { 
                return orderID; 
            }
            set {
                orderID = value; }
        }

    }
}
